import request from './request'

export function getSourceTexts() {
  return request({
    url:'/textresource/english-text/',
    method:"get"
  })
}

export function deleteSourceText(id) {
  return request({
    url:'/textresource/english-text/'+id+'/',
    method:"delete"
  })
}

export function saveSourceText(text_en) {
  return request({
    url:'/textresource/english-text/',
    method:"post",
    data: {
      text_en
    }
  })
}

export function translateEn2De(text_en) {
  return request({
    url:'/textresource/english-text/translate/',
    method:"post",
    data: {
      text_en
    }
  })
}
